<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
	<title>Title</title>
</head>

<body>
	时间：<span id="time"></span>
	<script src="common.js"></script>
	<script>
			var time = my$("time");
			var date = new Date();
			setInnerText(time, getTimeString(date));
			setInterval(function() {
				//每过一秒钟，给span设置一次时间
				var date = new Date();
				setInnerText(time, getTimeString(date));
			}, 1000);
		</script>
</body>

</html>